package com.aysafety.iotdataplatformweb.services.hydraulicsupport;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface HydraulicSupportService {
    long countByHydraulicSupport(String mineId, String deviceId, String startTime, String endTime, int timeSpan,
        String timeUnit) throws Throwable;

    List<Map<String, Object>> queryRealTimeByHydraulicSupport(String mineId, String deviceId, String startTime,
        String endTime, int timeSpan, String timeUnit, int page, int size, String startRow) throws Throwable;

    List<Map<String, Object>> queryFrequency(String mineId, String deviceId, String startTime, String endTime,
        int timeSpan, String timeUnit) throws Throwable;

    /** 
    * @Description: 闪烁间隔危险度
    * @Param: [mineId, deviceId, startTime, endTime, timeSpan, timeUnit] 
    * @return: java.util.List<java.util.Map<java.lang.String,java.lang.Object>> 
    * @Author: ChengQi 
    * @Date: 2019/3/5 
    */
    List<Map<String, Object>> queryFlicker(String mineId, String deviceId, String startTime, String endTime,
        int timeSpan, String timeUnit) throws Throwable;

    /**
    * @Description: 综合预警
    * @Param: [mineId, startTime, endTime]
    * @return: java.util.Map<java.lang.String,java.lang.Object>
    * @Author: ChengQi
    * @Date: 2019/1/11
    */
    Map<String, Object> comprehensiveWarning(String mineId, String startTime, String endTime) throws Throwable;
}
